/**
 * @作者 Lucas
 * @创建时间 2020/5/17 19:57
 */
package com.lucas.springboot_restful_api.dto;

import com.lucas.springboot_restful_api.core.enumeration.LoginType;
import com.lucas.springboot_restful_api.dto.validators.TokenPassword;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
public class UserLoginDTO {
    @NotBlank(message = "account不允许为空")
    private String account;
    @TokenPassword(max=30, message = "{user.password}")
    @NotBlank
    private String password;
    @NotNull
    private LoginType type;
}
